import request from '@/utils/request'

export function dutyRecordShiftChangeAdd(data) {
  return request({
    url: '/dutyRecordShiftChangeApi/add',
    method: 'post',
    data
  })
}

export function listRecordShiftChange(query) {
  return request({
    url: '/dutyRecordShiftChangeApi/list',
    method: 'get',
    params: query
  })
}

export function getShiftChange(id) {
  return request({
    url: '/dutyRecordShiftChangeApi/' + id,
    method: 'get'
  })
}

export function updateDutyRecordShiftChange(data) {
  return request({
    url: '/dutyRecordShiftChangeApi/edit',
    method: 'post',
    data
  })
}

export function delShiftChange(query) {
  return request({
    url: '/dutyRecordShiftChangeApi/delete',
    method: 'get',
    params: query
  })
}
